package com.bins.dentist.clinic.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 区域表
 * </p>
 *
 * @author bins
 * @since 2023-04-23 13:22:36
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_area")
@ApiModel(value = "AreaEntity对象", description = "区域表")
public class AreaEntity {

    @ApiModelProperty("id ")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("区域code")
    @TableField("area_code")
    private String areaCode;

    @ApiModelProperty("区域名称")
    @TableField("area_name")
    private String areaName;

    @ApiModelProperty("父级区域编码")
    @TableField("parent_area_code")
    private String parentAreaCode;

    @ApiModelProperty("区域等级 1-省份 2-市 3-区县 4-街道")
    @TableField("area_level")
    private String areaLevel;

    @ApiModelProperty("区域描述")
    @TableField("area_desc")
    private String areaDesc;

    @ApiModelProperty("英文名或拼音")
    @TableField("pinyin")
    private String pinyin;

    @ApiModelProperty("状态:0-禁用 1-正常 2-锁定")
    @TableField("area_status")
    private Integer areaStatus;

    @ApiModelProperty("模糊匹配名称")
    @TableField("match_name")
    private String matchName;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("创建用户id")
    @TableField("create_user")
    private Long createUser;

    @ApiModelProperty("修改用户id")
    @TableField("update_user")
    private Long updateUser;

    @ApiModelProperty("银行编码")
    @TableField("bank_code")
    private String bankCode;

}
